<?php defined('LFNC_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: array_map_scalar.lfnc.php 189 2009-03-11 09:46:43Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/array/array_map_scalar.lfnc.php $
*/


function array_map_scalar($callback, $var1 /* [, $var2, ...] */ ) {
	$args = func_get_args();
	array_shift($args);
	$args = array_map('need_array', $args, array_fill_count($args, max_count_array($args)));
	array_unshift($args, $callback);
	return call_user_func_array('array_map', $args);
}


?>